package com.pro.system.Controller;

import com.pro.system.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class maincontroller {
    @GetMapping("admin")
    public String displayUserForm(Model model){
        User user = new User();
        model.addAttribute(user);
        return "web/background/index";
    }

    @GetMapping
    public String displayFgForm(Model model){
        User user = new User();
        model.addAttribute(user);
        return "web/foreground/index";
    }

}
